const state = {
  houseId: '',  //入库厂库id
  areasName:'',//入库厂库名称
  moterInfo:{},  //入库物资信息
  materialList:[]
}

const mutations = {
  setMoterInfo: (state, repairInfo) => {
    state.moterInfo = repairInfo
  },
  setHouseId: (state, repairInfo) => {
    state.houseId = repairInfo
  },
  setAreasName: (state, repairInfo) => {
    state.areasName = repairInfo
  },
  setMaterialList: (state, repairInfo) => {
	  if(repairInfo.length===0){
		  state.materialList=repairInfo
	  }else{
		state.materialList.push(repairInfo)
	  }
  }
}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
